#////////////////////////////////////////////////////////////////////////////
#//
#// Author      : Luis M. de la Cruz Salas
#// Date        : Mon Jan 31 18:04:40 CST 2005
#// Version     : 1.0
#// Last Rev.   : Mon Jun  4 13:39:54 CDT 2007
#//
#////////////////////////////////////////////////////////////////////////////


include	../tuna-cfd-rules.in

all :	convdiff1 convdiff2 convdiff3 convdiff4 convdiff5 convdiff6 \
	convdiff7 convdiff8 convdiff9

####################################################
## For the approximation of the convective terms use:
##  -DWITH_DX      for OpenDX
##  -DWITH_GNUPLOT for Gnuplot
####################################################

convdiff1: convdiff1.o 
	$(CXX) $< -o $@ $(LIBS)

convdiff1.o: convdiff1.cpp
	$(CXX) $(CXXFLAGS) -DWITH_DX $(INCLUDES) -c $<

convdiff2: convdiff2.o 
	$(CXX) $< -o $@ $(LIBS)

convdiff2.o: convdiff2.cpp
	$(CXX) $(CXXFLAGS) $(INCLUDES) -c $<

convdiff3: convdiff3.o 
	$(CXX) $(CXXFLAGS) $(INCLUDES) $< -o $@ $(LIBS)

convdiff3.o: convdiff3.cpp
	$(CXX) $(CXXFLAGS) $(INCLUDES) -c $<

convdiff4: convdiff4.o 
	$(CXX) $(CXXFLAGS) $(INCLUDES) $< -o $@ $(LIBS)

convdiff4.o: convdiff4.cpp
	$(CXX) $(CXXFLAGS) $(INCLUDES) -c $<

convdiff5: convdiff5.o 
	$(CXX) $(CXXFLAGS) $(INCLUDES) $< -o $@ $(LIBS)

convdiff5.o: convdiff5.cpp
	$(CXX) $(CXXFLAGS) $(INCLUDES) -c $<

convdiff6: convdiff6.o 
	$(CXX) $(CXXFLAGS) $(INCLUDES) $< -o $@ $(LIBS)

convdiff6.o: convdiff6.cpp
	$(CXX) $(CXXFLAGS) $(INCLUDES) -c $<

convdiff7: convdiff7.o 
	$(CXX) $(CXXFLAGS) $(INCLUDES) $< -o $@ $(LIBS)

convdiff7.o: convdiff7.cpp
	$(CXX) $(CXXFLAGS) $(INCLUDES) -c $<

convdiff8: convdiff8.o 
	$(CXX) $(CXXFLAGS) $(INCLUDES) $< -o $@ $(LIBS)

convdiff8.o: convdiff8.cpp
	$(CXX) $(CXXFLAGS) $(INCLUDES) -c $<

convdiff9: convdiff9.o 
	$(CXX) $(CXXFLAGS) $(INCLUDES) $< -o $@ $(LIBS)

convdiff9.o: convdiff9.cpp
	$(CXX) $(CXXFLAGS) $(INCLUDES) -c $<

clean:
	/bin/rm -f *.o *.ii convdiff1 convdiff2 convdiff3 convdiff4 convdiff5 convdiff6 convdiff7 convdiff8 convdiff9 *~
